﻿<Window x:Class="ProductKeyManager.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Settings" Height="400" Width="400" Loaded="Window_Loaded">
    <Window.Background>
        <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
            <LinearGradientBrush.RelativeTransform>
                <TransformGroup>
                    <TranslateTransform X="-0.5" Y="-0.5"/>
                    <ScaleTransform ScaleX="1" ScaleY="1"/>
                    <SkewTransform AngleX="0" AngleY="0"/>
                    <RotateTransform Angle="90.0172795589426"/>
                    <TranslateTransform X="0.5" Y="0.5"/>
                    <TranslateTransform X="-0.0015136743804197244" Y="-0.19736842105263153"/>
                </TransformGroup>
            </LinearGradientBrush.RelativeTransform>
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="Black" Offset="0.0"/>
                <GradientStop Color="#565656" Offset="1"/>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    </Window.Background>
    <DockPanel>
        <DockPanel DockPanel.Dock="Bottom">
            <ToolBarTray IsLocked="True">
                <ToolBarTray.Background>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                        <LinearGradientBrush.RelativeTransform>
                            <TransformGroup>
                                <TranslateTransform X="-0.5" Y="-0.5"/>
                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                <SkewTransform AngleX="0" AngleY="0"/>
                                <RotateTransform Angle="90.0172795589426"/>
                                <TranslateTransform X="0.5" Y="0.5"/>
                                <TranslateTransform X="-0.0015136743804197244" Y="-0.19736842105263153"/>
                            </TransformGroup>
                        </LinearGradientBrush.RelativeTransform>
                        <LinearGradientBrush.GradientStops>
                            <GradientStop Color="Black" Offset="0.0"/>
                            <GradientStop Color="#565656" Offset="1"/>
                        </LinearGradientBrush.GradientStops>
                    </LinearGradientBrush>
                </ToolBarTray.Background>
                <ToolBar Foreground="White" DockPanel.Dock="Right" Background="Transparent">
                    <Button Margin="2" Name="SettingsOk" Width="50" Click="SettingsOk_Click" Foreground="White">Ok</Button>
                    <Button Margin="2" Name="SettingsCancel" Click="SettingsCancel_Click" Width="50" Foreground="White">Cancel</Button>
                    <Button Margin="2" Name="SettingsApply" Click="SettingsApply_Click" Width="50" Foreground="White">Apply</Button>
                    </ToolBar>
            </ToolBarTray>
        </DockPanel>
        <TabControl Name="tabControl1">
            <TabItem Header="Basic">
                <StackPanel>
                    <CheckBox Margin="4" Name="chkSaveLastSearch">Save Last Search</CheckBox>
                    <CheckBox Margin="4" Name="chkLockToolbars">Lock Toolbars</CheckBox>
                    <CheckBox Margin="4" Name="chkEnableXsl" Checked="chkEnableXsl_Checked" Unchecked="chkEnableXsl_Checked">Enable XSL Stylesheets on export</CheckBox>
                    <StackPanel Orientation="Horizontal">
                        <Rectangle Width="16"/>
                        <CheckBox Name="chkXslPrompt" Margin="4">Prompt to use XSL</CheckBox>
                    </StackPanel>
                </StackPanel>
            </TabItem>
            <TabItem Header="Import/Export">
                <TabControl Background="Transparent">
                    <TabItem Header="PKM Xml">
                        <DockPanel>
                            <TextBox Name="txtPkmXslStylesheet" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                        </DockPanel>
                    </TabItem>
                    <TabItem Header="MSDN Xml">
                        <DockPanel>
                            <TextBox Name="txtMsdnXslStylesheet" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" />
                        </DockPanel>
                    </TabItem>
                </TabControl>
            </TabItem>
            <TabItem Header="Data Layer">
                <StackPanel>
                    <Label Content="Connection String:" />
                    <TextBox Name="mConnectionString" IsEnabled="False" />
                </StackPanel>
            </TabItem>
            <TabItem Header="Updating"></TabItem>
        </TabControl>
    </DockPanel>
</Window>
